/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.cezary.butler.walili;

import pl.cezary.butler.walili.client.UserDataSource;
import pl.cezary.butler.walili.common.ILoginFacadeRemote;

/**
 *
 * @author Cezary Butler
 */
public class ServicesLocator implements IServicesLocator{
    
    private final IServicesLocator locator;

    private  ServicesLocator(IServicesLocator locator) {
        this.locator = locator;
    }
    
    public static IServicesLocator getInstance(UserDataSource ds){
        return new ServicesLocator(ServicesLocatorSpring.getInstance(ds));
    }    

    @Override
    public ILoginFacadeRemote getLoginFacade() {
        return locator.getLoginFacade();
    }
    
    
}
